package com.sport.controller;


import com.sport.utils.Result;
import io.swagger.annotations.Api;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "测试接口")
public class testcontroller {
   @PreAuthorize("hasAuthority('USER_INSERT')")
    @GetMapping("/test")
    public Result test(){
        return  Result.success("访问成功","你好");
    }
}
